﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CalibrationLibrary
{
    public class RunIterations
    {
        public RunIterations(Parameters parameters, int Iterations, GetProbability getmodelprobability)
        {
            for (int i = 0; i < Iterations;i++ )
            {
                double P = getmodelprobability(parameters);

                foreach (Parameter p in parameters.ModelParameters) p.AddValueAndProbability(P);

                foreach (Parameter p in parameters.ModelParameters) p.RandomJump();

            }
        }
    }
}
